package com.fitness.fitness.convertor;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fitness.fitness.modal.member.dto.MemberDto;
import com.fitness.fitness.modal.member.entity.Member;
import com.fitness.fitness.modal.member.vo.MemberVO;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface MemberConvertor {
    MemberVO entity2VO(Member user);

    Member dto2Entity(MemberDto userDto);

    Page<MemberVO> entity2Vo(Page<Member> userBoPage);
}
